Swift SDK

Ship Onde into Apple apps.

The Swift package is distributed from onde-swift, while signed release assets live on onde. Test local XCFramework builds without rewriting the package manifest.

Release track

Swift Package Manager resolves the published package from onde-swift and downloads the binary XCFramework asset from GitHub Releases on the main onde repository.

Local track

Set ONDE_SWIFT_USE_LOCAL=1 and point .local/OndeFramework.xcframework at a freshly built local XCFramework when testing without publishing a release.

Bindings

The Swift layer is generated directly with UniFFI from the Rust static library. cargo-swift is no longer part of the release pipeline.

Current scope

The first public SDK release is chat-focused: OndeChatEngine, model loading, history management, and streaming callbacks.

Install

Add the package in Xcode or in your app Package.swift.

dependencies: [
  .package(url: "https://github.com/ondeinference/onde-swift", from: "0.1.0")
]

Switching modes

Release stays the default. Local mode is opt-in through an environment variable.

Install from GitHub.package(url: "https://github.com/ondeinference/onde-swift", from: "0.1.0")
Force local modeONDE_SWIFT_USE_LOCAL=1 open -a Xcode /path/to/YourApp.xcodeproj
Wire the local XCFrameworkln -s /path/to/OndeFramework.xcframework /path/to/onde-swift/.local/OndeFramework.xcframework

Platform matrix

The current package is aimed at iOS and macOS first.

PlatformBinary slicesStatus
iOSarm64 device, arm64 + x86_64 simulatorReady
macOSarm64Ready
tvOSRelease workflow planned, not yet shipped on the package pagePending